import { useSelector } from 'react-redux'
import { StateType } from '@/store'
import { PageInfoStateType } from '@/store/features/pageReducer'

function useGetPageInfo() {
  const pageInfo = useSelector<StateType>(state => state.page) as PageInfoStateType
  return pageInfo
}

export default useGetPageInfo
